/******************************************************************************
** 
** File name:	UTEST_01.S
**	
** Description: RTOS Unit Tests. Context consistency check. 
**
**	Services:
**
**		void UTST_FillRegisters( void )
**
**  Notes:			Unit test service functions.  
**
** Change history:
**	
** 03/16/2012 - AK - File created. 
**
******************************************************************************/
#include "rtos.inc" 

	_MODULE(utest_01)
	_CODESECTION
	
/******************************************************************************
** Prototype:	void UTST_FillRegisters( void )
** Description:	
** Passed:		
** Returns:		
** Uses:		
** Calls:		
** Assumes:		
** Notes:		
******************************************************************************/
	_FUNCTION(UTST_FillRegisters)
	
UTST_FillRegisters:

	ldi		R31, 32
loop:
	push	R31
	dec		R31
	brne	loop

	pop		R0
	pop		R1
	pop		R2
	pop		R3
	pop		R4
	pop		R5
	pop		R6
	pop		R7
	pop		R8
	pop		R9

	pop		R10
	pop		R11
	pop		R12
	pop		R13
	pop		R14
	pop		R15
	pop		R16
	pop		R17
	pop		R18
	pop		R19

	pop		R20
	pop		R21
	pop		R22
	pop		R23
	pop		R24
	pop		R25
	pop		R26
	pop		R27
	pop		R28
	pop		R29

	pop		R30
	pop		R31

	ret
	
	_ENDFUNC
	
	_END